package com.ccrfid.rmc6.repository.device;

import com.ccrfid.rmc6.entity.device.CardActiveEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface CardActiveRepository extends Repository<CardActiveEntity, Integer> {
    //
    List<CardActiveEntity> getAllBy();
    //
    List<CardActiveEntity> getAllByLocatorAddress(Integer locatorAddress);
    //
    CardActiveEntity getByCardNumber(Long cardNumber);
    //
    CardActiveEntity save(CardActiveEntity entity);
    //
    void deleteByCardNumber(Long cardNumber);
    //
    Boolean existsByCardNumber(Long cardNumber);
}
